Results 1 through
20
while searching for:
"linux"
How do you launch Firefox with a specific profile, on Linux?
Try something like:
user# MOZ_NO_REMOTE=1 firefox -P FooProfile
Where xx would look something like:
[General]
StartWithLastProfile=0
[Profile0]
Name=default
IsRelative=1
Path=abcd12345.default
Default=1
[Profile1]
Name=FooProfile
[...]
http://rockfloat.com/board/post/?id=614
February 24, 2010 @19:15
(Replies: 0)
(Rank: 0.061)
linux
How do you look at the currently running linux kernel config?
See if you have this file:
ls /proc/config.gz
If so, copy and unpack it :)
http://rockfloat.com/board/post/?id=609
August 20, 2009 @18:18
(Replies: 0)
(Rank: 0.061)
linux
How do I add networking support to chroot?
You'll need to mount a few additional things to make this happen.
mkdir /mnt/my_chroot
mount -t auto -o acl /dev/my_partition /mnt/my_chroot
mount --bind /dev /mnt/my_chroot/dev
mount --bind /tmp /mnt/my_chroot/tmp
mount --bind /proc /mnt/my_
[...]
http://rockfloat.com/board/post/?id=584
October 19, 2007 @15:11
(Replies: 0)
(Rank: 0.061)
linux
Manage runlevel scripts on debian or ubuntu
To add apache2 to the default runlevel:
update-rc.d apache2 defaults
To remove apache2 from the default runlevel:
update-rc.d -f apache2 remove
http://gentoo-wiki.com/TIP_Converting_from_or_to_Debian#Debian_6
http://rockfloat.com/board/post/?id=561
March 20, 2007 @21:47
(Replies: 0)
(Rank: 0.061)
linux
How do you update the system jvm on Ubuntu?
Try this:
user# sudo update-alternatives --config java
This will present you with a list of the available jvm's from which you can pick.
John M.
http://rockfloat.com/board/post/?id=555
January 27, 2007 @18:15
(Replies: 0)
(Rank: 0.061)
linux
What happens if I cannot restart sshd from a shell or from console (iLo)
To remotely restart sshd you can enter this command:
user# screen
user# su -
root# sleep 30 && /etc/init.d/sshd stop; sleep 10 && killall sshd; /etc/init.d/sshd zap; sleep 5 && /etc/init.d/sshd start
http://rockfloat.com/board/post/?id=546
November 17, 2006 @18:22
(Replies: 0)
(Rank: 0.061)
linux
How do you recursively grep files that match a certain pattern?
Here's how you might find the files that will benefit from the recent GPL'ing of the J2SE
user# grep -r --include=*.ebuild "pkg_nofetch()" /usr/portage/dev-java/*
/me jumps for joy
John M.
http://rockfloat.com/board/post/?id=544
November 13, 2006 @22:15
(Replies: 0)
(Rank: 0.061)
linux
How do you generate a schema diagram, or ER diagram of a database?
You can do this using the following two tools
1. PostgreSQL Autodoc
2. dot
Here's the quick and dirty howto (on gentoo):
user# sudo emerge -a graphviz
user# wget http://www.rbt.ca/autodoc/binaries/postgresql_autodoc-1.25.tar.gz
user# tar
[...]
http://rockfloat.com/board/post/?id=519
May 05, 2006 @16:59
(Replies: 0)
(Rank: 0.061)
linux
How do you setup or install a printer via cups?
Here's an example using an HP 4050 with a JetDirect card:
Use http://localhost:631 to add the printer using these options:
Name: HP4050FOOBAR
Device: AppSocket/HP JetDirect
Device URI: socket://fully.qualified.hostname
Make: PostScript
Mode
[...]
http://rockfloat.com/board/post/?id=535
June 28, 2006 @19:50
(Replies: 0)
(Rank: 0.061)
linux
How do you mount an iso file?
Try this:
user# sudo mkdir /mnt/iso #If it doesn't already exist
user# mount -o loop foobar.iso /mnt/iso
user# ls /mnt/iso
John M.
http://rockfloat.com/board/post/?id=522
May 30, 2006 @14:58
(Replies: 0)
(Rank: 0.061)
linux
how to you install the SA-03:13 patch on freebsd 4.8 RELEASE
a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.
ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-03:13/sendmail.patch
ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-03:1
[...]
http://rockfloat.com/board/post/?id=109
September 18, 2003 @13:11
(Replies: 0)
(Rank: 0.061)
linux
iPod tips and tricks for Linux
Managing an iPod on Linux is a pain in the tail. Hopefully these commands might help you (where /media/ALBA is an example mount point):
# Fix situation where filesystem is readonly
sudo mount -oremount,rw /media/ALBA
# To delete everything an
[...]
http://rockfloat.com/board/post/?id=615
August 08, 2010 @01:06
(Replies: 0)
(Rank: 0.000)
How do you avoid restarting Apache all the time when working with mod_python?
First put this in your Apache vhost configuration:
PythonAutoReload On
PythonDebug On
Then make sure Apache isn't running, and start it up manually telling it to run as a single process. Here's how I do it on Gentoo Linux:
user$ sudo /usr/
[...]
http://rockfloat.com/board/post/?id=574
May 26, 2007 @07:07
(Replies: 0)
(Rank: 0.000)
How do you use the grub sub system, or what do you do when all you see is: grub >
If you ever find yourself needing to talk directly to grub this will hopefully help you:
grub> kernel /linux-2.6.19-gentoo-r5 root=/dev/hda1
# Then if you're using a ramdisk *cough* Ubuntu *cough*
grub> initrd=/initrd.img
# Now you can try
[...]
http://rockfloat.com/board/post/?id=560
March 17, 2007 @05:04
(Replies: 0)
(Rank: 0.000)
how do you run tcpdump to check packets?
One of these might help you:
# Example for freebsd:
root# tcpdump -vni fxp0 > outputfile
# Linux, wifi, for use with later Wireshark analysis:
root# tcpdump -i ath0 -s 1500 -w dump.txt
# Same as above, but it writes to stdout, not a file:
[...]
http://rockfloat.com/board/post/?id=536
March 17, 2003 @15:26
(Replies: 0)
(Rank: 0.000)
Re: how do you look for or search for a file?
linux keeps a list of all files in a database... which can be updated by running updatedb and searched using locate.... so:
root# updatedb *linux*
root# /usr/libexec/locate.updatedb *freebsd*
then do this to find "foobar"
root# locate f
[...]
http://rockfloat.com/board/post/?id=421
April 24, 2002 @03:47
(Replies: 0)
(Rank: 0.000)
How do you escape, or minimize tsclient when it's in fullscreen mode?
If you have a fullscreen tsclient (rdesktop) running, try hitting:
ctrl + alt + enter
This should get you back to your linux desktop, put tsclient back into focus and repeat to get back into fullscreen mode again.
John M.
http://rockfloat.com/board/post/?id=45
August 01, 2005 @05:17
(Replies: 0)
(Rank: 0.000)
Re: how do you set up samba to be a member of a windows domain
first you will need to configure smb.conf to have this:
workgroup = workgroup_foo
server string = Foo
hosts allow = 10. 127.
log file = /var/log/samba/%m.log
max log size = 0
security = domain
password server = netbios_name
encrypt password
[...]
http://rockfloat.com/board/post/?id=415
May 14, 2002 @16:06
(Replies: 0)
(Rank: 0.000)
How do you generate a barcode on a Linux box?
You can use GNU Barcode.
1. root# emerge -a barcode
2. user# barcode -b footext -g "500x500" -o foo.ps
3. user# convert foo.ps foo.png
John M.
http://rockfloat.com/board/post/?id=524
June 15, 2006 @22:04
(Replies: 0)
(Rank: 0.000)
How do you make a vfat or fat32 filesystem on linux, mkfs.vfat seems to be missing?
You need to install dosfstools
root# emerge dosfstools
Then you can do:
root# mkfs -t vfat /dev/sda1
John M.
http://rockfloat.com/board/post/?id=509
March 15, 2006 @23:37
(Replies: 0)
(Rank: 0.000)