xset -b b 0
(if you were wondering about the annoying opensuse beep in opensuse 11.0)
*the affects of the command will disappear once the session ends..
*take one dosage before every meal and before going to bed.
*drink with milk.
Wednesday, February 25, 2009
Wednesday, February 04, 2009
Toshiba m305
Okay, so I am using a toshiba m305d laptop. So far this thing has sucked for linux...so I am going to be the person to go ahead and go through these hurdles, get it working..and see if I can help out the community in any way..
I'm not the most professional at this..I am pretty much a n00b, so if your a techie..just follow along and see what you can get from this..
First of all, Most linux distributions (fedora 10, suse, ubuntu) wont even start on the machine, it gives an error(at least for me) error is that disabling irq #9 and then hangs. to get past this it seems all you need to do is pass pci=noacpi and then you get to boot.
We will be back with ethernet problems. I know for a fact that everything pre fedora 10 does not work with the ethernet driver, I can't remember what the problem was, but I believe its hardware id was not linked correctly at the kernel. I know that there was a way to compile from source..but this quickly turned into a dependency hell...
alright..and the link lights on my ethernet adapter are up for the first time in any linux distro i have seen..I believe that is a good sign.
I'm not the most professional at this..I am pretty much a n00b, so if your a techie..just follow along and see what you can get from this..
First of all, Most linux distributions (fedora 10, suse, ubuntu) wont even start on the machine, it gives an error(at least for me) error is that disabling irq #9 and then hangs. to get past this it seems all you need to do is pass pci=noacpi and then you get to boot.
We will be back with ethernet problems. I know for a fact that everything pre fedora 10 does not work with the ethernet driver, I can't remember what the problem was, but I believe its hardware id was not linked correctly at the kernel. I know that there was a way to compile from source..but this quickly turned into a dependency hell...
alright..and the link lights on my ethernet adapter are up for the first time in any linux distro i have seen..I believe that is a good sign.
Sunday, July 29, 2007
Redhat Vnc Config
This tutorial covers the essentials on how to get a vnc-server up and running from the shell. I'm not good at writing a lengthy tutorial, so I'll just get right down to it. For this tutorial I am assuming that you are using a RedHat , or RedHat Based distribution, like Fedora , RHEL, or any other derivitives. I released this tutorial on fedoraforums.org, everybody basically attacked it, pointing to a better one. Anyways, this is an entirely different setup then any of the other ones I have seen mentioned,as well as the end result is somewhat different. In anycase, something can be learned from either or.
Step 1: Installing the server
First of all we need to get the vnc-server package installed, before we can do anything. Log in as root and run the following commands
yum -y install vnc-server
chkconfig --level 5 vncserver on
Step 2: User Specific VNC Configuration
For this next step we are going to need a command-line text editor. If you do not have one, I would recommend you use joe. to get joe just use "yum -y install joe" from root.
now navigate to /home/ "HOME DIRECTORY HERE"/.vnc
for me it would be
cd /home/darkscript/.vnc
use joe to edit the xstartup file
joe xstartup
uncomment the following 2 lines by removing the # sign before them.
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
if you dont uncomment those 2 lines, when the vncserver is configured, it will use the tvm window manager, instead of gnome, kde, blackbox, or whatever you use... and btw... TVM really SUCKS.
Step 3: System Wide VNC Settings
Next comes the cool part. Up till now, the server wont accept incoming connections because it isn't configured to accept them yet.. Here is the really cool part, you can configure the vncserver to work like this.
host:1 will connect to darkscript
host:2 will connect to root
host:3 will connect to cloudyone
you can keep on going with however many users you want to have on your system.
joe /etc/sysconfig/vncservers
Edit the file As follows. **NOTE: Anything prefixed with a # is a comment and is ignored by the system**
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
#.
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 1280x720 -nolisten tcp -nohttpd -localhost"
VNCSERVERS="1:darkscript"
VNCSERVERARGS[1]="-geometry 1024x768'
I hope editing that is self explainitory... but basically here is what really matters. Say I wanted host:0 to be root and host:1 to be darkscript ,you would set the variables as follows
VNCSERVERS="0:root 1:darkscript"
VNCSERVERARGS[0]="-geometry 1024x768"
VNCSERVERARGS[1]="-geometry 1024x768"
now save the file with ctrl +K + X
Step 4: Updating the Firewall
HORRAY! Were almost done... Now we simply have set our firewall to allow the ports 5900, 5901, and however many other hosts you have added, if you dont know "host:1" would map out to host:5901 , host 2 would map out to 5902, so keep that in mind when your setting up your firewall
So for this part, use lokkit
so once you open up lokkit, navigate over to customize, and add the ports down where it says "other ports"
the syntax is as follows
5900:tcp 5900:udp 5901:tcp 5901:udp 5902:tcp 5902:udp
Step 5: Automatic X11 Startup
Allright, Now for the final step, we need the machine to automatically start in runlevel five, so for this part just use joe again to edit /etc/grub.conf
Now edit that.just for an easy rule of thumb, everywhere it says quiet, add 5 at the end of it...for example... rhgb quiet 5. I'll be adding an example file in sooner or later...
Now Reboot your machine with shutdown -r now, and you are good to go.
Step 1: Installing the server
First of all we need to get the vnc-server package installed, before we can do anything. Log in as root and run the following commands
yum -y install vnc-server
chkconfig --level 5 vncserver on
Step 2: User Specific VNC Configuration
For this next step we are going to need a command-line text editor. If you do not have one, I would recommend you use joe. to get joe just use "yum -y install joe" from root.
now navigate to /home/ "HOME DIRECTORY HERE"/.vnc
for me it would be
cd /home/darkscript/.vnc
use joe to edit the xstartup file
joe xstartup
uncomment the following 2 lines by removing the # sign before them.
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
if you dont uncomment those 2 lines, when the vncserver is configured, it will use the tvm window manager, instead of gnome, kde, blackbox, or whatever you use... and btw... TVM really SUCKS.
Step 3: System Wide VNC Settings
Next comes the cool part. Up till now, the server wont accept incoming connections because it isn't configured to accept them yet.. Here is the really cool part, you can configure the vncserver to work like this.
host:1 will connect to darkscript
host:2 will connect to root
host:3 will connect to cloudyone
you can keep on going with however many users you want to have on your system.
joe /etc/sysconfig/vncservers
Edit the file As follows. **NOTE: Anything prefixed with a # is a comment and is ignored by the system**
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
#
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 1280x720 -nolisten tcp -nohttpd -localhost"
VNCSERVERS="1:darkscript"
VNCSERVERARGS[1]="-geometry 1024x768'
I hope editing that is self explainitory... but basically here is what really matters. Say I wanted host:0 to be root and host:1 to be darkscript ,you would set the variables as follows
VNCSERVERS="0:root 1:darkscript"
VNCSERVERARGS[0]="-geometry 1024x768"
VNCSERVERARGS[1]="-geometry 1024x768"
now save the file with ctrl +K + X
Step 4: Updating the Firewall
HORRAY! Were almost done... Now we simply have set our firewall to allow the ports 5900, 5901, and however many other hosts you have added, if you dont know "host:1" would map out to host:5901 , host 2 would map out to 5902, so keep that in mind when your setting up your firewall
So for this part, use lokkit
so once you open up lokkit, navigate over to customize, and add the ports down where it says "other ports"
the syntax is as follows
5900:tcp 5900:udp 5901:tcp 5901:udp 5902:tcp 5902:udp
Step 5: Automatic X11 Startup
Allright, Now for the final step, we need the machine to automatically start in runlevel five, so for this part just use joe again to edit /etc/grub.conf
Now edit that.just for an easy rule of thumb, everywhere it says quiet, add 5 at the end of it...for example... rhgb quiet 5. I'll be adding an example file in sooner or later...
Now Reboot your machine with shutdown -r now, and you are good to go.
Saturday, July 07, 2007
Backups
This is great for backups. I found this while reading the man file for mysqldump
that should really help
shell> mysqldump [options] db_name [tables]
shell> mysqldump [options] --databases db_name1 [db_name2 db_name3...]
shell> mysqldump [options] --all-databases
the -u and -p commands : user and password remain the same throughout almost all mysql operations.
So
mysqldump -u [username] -p [password] [databasename] > [backupfile.sql]
as for the restore
mysql -u [username] -p [password] [database_to_restore] < [backupfile]
Tar's Hidden Power
just as tar -xzvf file.tar.gz extracts all files to current direcotry
tar -xzvf file.tar.gz readme.txt will extract just the readme.
as well
tar -czf file.tar.gz directory/ will create a file from the directory. Not sure but perhaps using * or just typing in the files you want one by one might work fine too. Worth a shot.
Well I've learned alot more tonight... Just a few more tricks that I hope stay around.
that should really help
shell> mysqldump [options] db_name [tables]
shell> mysqldump [options] --databases db_name1 [db_name2 db_name3...]
shell> mysqldump [options] --all-databases
the -u and -p commands : user and password remain the same throughout almost all mysql operations.
So
mysqldump -u [username] -p [password] [databasename] > [backupfile.sql]
as for the restore
mysql -u [username] -p [password] [database_to_restore] < [backupfile]
Tar's Hidden Power
just as tar -xzvf file.tar.gz extracts all files to current direcotry
tar -xzvf file.tar.gz readme.txt will extract just the readme.
as well
tar -czf file.tar.gz directory/ will create a file from the directory. Not sure but perhaps using * or just typing in the files you want one by one might work fine too. Worth a shot.
Well I've learned alot more tonight... Just a few more tricks that I hope stay around.
Monday, June 11, 2007
new compile stuff
Besides using ./configure --prefix="/home/darkscript/virtual" to change the location to install too, if ./configure has already been run, and you don't want to re-run it, its just as easy to do it at the third and final step in the process of compiling and installing, simply use
make install DEST=/home/name/botdir
I decided i should post new things I learn here...so i can refer back to them later...
A couple of other misc Things that are useful are
lokkit
chkconfig
other things I need to learn are about SELinux, Ports viewing and blocking. and other stuff.
make install DEST=/home/name/botdir
I decided i should post new things I learn here...so i can refer back to them later...
A couple of other misc Things that are useful are
lokkit
chkconfig
other things I need to learn are about SELinux, Ports viewing and blocking. and other stuff.
Friday, June 01, 2007
the last breath.
Well, My Good old friend, razgriz, is now on its deathbead...thats my laptop by the way. He got a name. I finally got it to turn on, and I am not sure when it will die again, but if you dont bump it too hard it seems to operate just fine... its great, working next to its younger brother finalrest, name given in memory or whatnot. I would like for this machine to keep working...i wouldn't give it away... i love it...its awesome.
Tuesday, May 15, 2007
Vista And Server
Wow, So, I feel that I am allready getting sort of tired of vista, I'll admit, it looks nice, or maybe i'm just looking at firefox.
It came on a new computer I bought, and I have been avidly researching all of the parts to my computer since, and how to do video chats and stuff like that in linux, and make good use of the webcam. It's been lots of fun I guess. but really i guess i'm bored and dont know what to do.
I've got my server downloading morrowind right now, I lost my own cd but still have the licese key...so that should make it "Legal".... wait...does it even use keys.
Oh well transmissioncli is pretty cool.
windows... is lame.
It came on a new computer I bought, and I have been avidly researching all of the parts to my computer since, and how to do video chats and stuff like that in linux, and make good use of the webcam. It's been lots of fun I guess. but really i guess i'm bored and dont know what to do.
I've got my server downloading morrowind right now, I lost my own cd but still have the licese key...so that should make it "Legal".... wait...does it even use keys.
Oh well transmissioncli is pretty cool.
windows... is lame.
Subscribe to:
Posts (Atom)