LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

allowing commands to continue after parent shell exit

Posted 11-05-2011 at 05:52 AM by neonsignal

Because commands that are started from a shell are child processes, they will normally be terminated when the shell exits.

A command can be run with nohup so that it can continue beyond the life of the parent shell, and output will be directed to the file nohup.out:
Code:
nohup command
Alternatively, if the command is already running (ie in the background), it can be allowed to continue by using disown before closing the shell:
Code:
disown
...
Senior Member
Posted in Uncategorized
Views 5899 Comments 2 neonsignal is offline
Old

resetting the root password

Posted 11-05-2011 at 05:36 AM by neonsignal
Updated 11-05-2011 at 05:38 AM by neonsignal

When the root password has been lost, it can be reset as follows.

At the grub menu, select 'e' to edit, and add the parameter 'init=/bin/bash' to the linux line. Then 'ctrl-x' to continue booting. This will start the system into a command shell.

Then remount the filesystem root as writable, so that the password can be changed:
Code:
mount -n -o rw,remount /
Change the password in the usual way, then sync to disk:
Code:
passwd
...
Senior Member
Posted in Uncategorized
Views 222 Comments 0 neonsignal is offline
Old

mounting remote directory through ssh

Posted 11-03-2011 at 03:48 AM by neonsignal

The sshfs package can be used to fuse mount remote directories.

For example, a remote apt-get archive could be mounted as a rough way of sharing the package cache:
Code:
sshfs server:/var/cache/apt/archives /var/cache/apt/archives
And then unmounted later:
Code:
fusermount -u /var/cache/apt/archives
This method can be automated by setting up an entry in /etc/fstab (this works best if the ssh login is done through a PKI...
Senior Member
Posted in Uncategorized
Views 243 Comments 0 neonsignal is offline
Old

adding non-repository deb packages to apt

Posted 11-01-2011 at 05:48 AM by neonsignal

A local repository can be created for miscellaneous deb packages that are not part of a standard repository, so that they can be managed by apt-get.

Create a repository (it can be located anywhere):
Code:
mkdir /var/cache/apt/altdeb
Copy the relevant deb files to that place. Then generate a package index:
Code:
dpkg-scanpackages /var/cache/apt/altdeb /dev/null | gzip >/var/cache/apt/altdeb/Packages.gz
Add a line to...
Senior Member
Posted in Uncategorized
Views 186 Comments 0 neonsignal is offline
Old

inserting unicode characters

Posted 11-01-2011 at 05:17 AM by neonsignal

The method for inserting unicode characters depends on the application.

For GTK based applications, a unicode character can be inserted by holding down ctrl-shift, typing 'u' followed by the hex code, and then releasing the ctrl-shift.

In vi, in insert mode, ctrl-v can be used, followed by 'u' and the hex code.

I do not know of a method for Qt based applications.

Of course, for entering significant amounts of non-ascii text, it can be useful...
Senior Member
Posted in Uncategorized
Views 179 Comments 0 neonsignal is offline

  



All times are GMT -5. The time now is 08:28 PM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration