| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,244
» Latest member: dangyc
» Forum threads: 4,031
» Forum posts: 16,406
Full Statistics
|
| Online Users |
There are currently 336 online users. » 0 Member(s) | 332 Guest(s) Applebot, Baidu, Bing, Google
|
| Latest Threads |
how to allow only steam t...
Forum: Xorg Problems
Last Post: moquber
2026-03-17, 09:40 PM
» Replies: 0
» Views: 325
|
Wi-Fi works for a few min...
Forum: Network Problems
Last Post: kabifff
2025-12-15, 12:57 AM
» Replies: 0
» Views: 708
|
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 4,053
|
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 125,352
|
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 75,463
|
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 5,423
|
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 9,257
|
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 47,654
|
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 166,770
|
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 98,127
|
|
|
| Using Screen |
|
Posted by: P38 - 2004-11-30, 12:30 AM - Forum: Remote Access
- Replies (6)
|
 |
Screen is a console based session manager capable of supporting many virtual sessions inside the same console session. It also has the ability to maintain a session that you have disconnected from and allow you to return to that session later.
I started using Screen when I became a heavy user of IRC. Because I switch between my Linux computer and my Windows computer, I was not able to standardize on one IRC client and use it in both environments. My IRC client of choice is Irssi (a console based client with many features) and it is only available in the unix environment. I made the decision to run my Irssi client from my remote shell inside a Screen session. This allows me to connect to my IRC client regardless of the machine that I'm currently on, reattach to my Screen session to regain control of my client.
But, Screen has many other uses besides IRC. For instance, I can remotely manage all of my servers using Screen. I am also able to start my upgrades/compiles inside a Screen session, disconnect, and return later to see how the job is progressing. Even involuntary disconnects are no problem because Screen sees the disconnect and waits for me to reconnect to the session.
For a simple example, run "screen" at the command line. Assuming you have the package installed on your machine, you will immediately be returned to a prompt. Start something running, perhaps your e-mail client, and then issue the command "Ctrl-a d". That is, Control a and then hit d. Ctrl-a is the default Screen alert key and the "d" tells Screen to detach from the process. You should now be back to the console without your email program. However, your e-mail program is still running, it is just running in a detached Screen session. To show this, type "screen -ls" at the prompt. Screen will reply with the sessions that are currently running. Assuming you have been following directions and you do not have but one Screen session in the background, you can simply type "screen -r" at the prompt and Screen will reattach the detached session and return you to your email client.
With multiple sessions in the background, the output would look something like this:
$ screen -ls
There are screens on:
21561.pts-0.ur2 (Detached)
21578.pts-0.ur2 (Detached)
2850.pts-0.ur2 (Detached)
3 Sockets in /var/run/screen/S-me.
The session I am writing on is "2850.pts-0.ur2 (Detached)" and assuming I want to return to the session and continue to write this document, I type
$ screen -r 2850
and it puts me back here.
The other sessions continue to run detached, however. I can go to another console to attach to them or I could connect in via the network and grab them from there.
Some other tricks that are available and are covered in the excellent man pages for Screen are:
- You have the ability to run multiple virtual terminals from within one Screen session and switch between them with "Ctrl-a n". The session I am currently using has this terminal where I am editing this document in vi, a second terminal where I am compiling some software, and a third where I am running a tail on my syslog files to watch my apache web server.
- The ability to have multiple attaches to the same session. Imagine a party line where everyone can see and type to the same console screen. If, from another console I ran screen -x 2850, I would see me typing this document from my earlier session. Both sessions have keyboard and screen control, so input can come from either or both at the same time.
- You can password protect Screen sessions when you want to add another layer of security on top of normal *nix security. - Screen has the ability to log everything that occurs during a session so you can review it later. For example, if you are compiling your kernel in a Screen session, you could start logging, start the compile, detach from the session and return to it later to see if your kernel compiled the way you wanted. You could then review the logs and check for errors.
- Screen maintains a scrollback buffer that you can scroll back through if you wish. You have the ability to configure the size of the buffer in your ~/.screenrc file.
- Using the "-S" option, you can name your sessions to make them easier to tell apart when you have several to sort through.
- Using the "-X" option, you can send commands to running Screen sessions without attaching to them first.
I have discovered over the years of running my servers that there are times that I need to restart certain services such as sshd or networking in order to re-read config files or pick up new settings. Have you ever tried to restart networking remotely? You will find that as soon as networking goes down, the session drops and any processes that were attached to the session also die. In this case, the 2nd half of the network restart dies before it can ever run. However, using Screen to protect the session from disconnecting, I can safely restart networking (/etc/init.d/network restart) from within the Screen session and the session does not die when the network goes down. In fact, I can't remember a time when, while using Screen to do this that I even lost my remote connection to the server. The service stops and restarts just as if I was sitting at the console.
Screen is one of those programs that the more you use it, the more you see opportunities to use it. I have and will continue to recommend all users be familiar with it's capabilities.
P38
Thanks to |Sanchez| in #linux-noob (EFnet) for his help in proofreading this document.
The following is a .screenrc from one of my machines.
$ cat .screenrc
# the hardstatus line appears at the bottom of my screen on every screen session
hardstatus on
# the following formats the hardstatus line to remind me of the alert
# key for the server I am on, the name of the server and the string
# of characters that follow shows the open sessions on the status line
# in a format similar to tabs.
hardstatus lastline "[CTRL-A] RECORDER: %-Lw%{= bw}%50>%n%f* %t%{-}%+Lw%<"
# i prefer to hear the bell instead of flashing the screen.
vbell off
|
|
|
| DVD-ROM-CD-RW Issue |
|
Posted by: enigma - 2004-11-29, 11:53 PM - Forum: Fedora
- Replies (5)
|
 |
Hi, I am having some issues with my dvd rom and cd rw. it reads the dvd rom but not the cd rw. Also when i try to play a dvd movie it locks my computer solid, i am thinking there might be an issue between the 2 drives... I am hoping there is a way i can configure it to detect my cd rw and that may solve the problem...
|
|
|
| FC 2 machine and a KVM switch |
|
Posted by: Guest - 2004-11-29, 03:30 PM - Forum: Fedora Core Release 2
- Replies (2)
|
 |
Hi all,
Hope you can help. I have two PC's attached to a KVM switch. One which is an oldish dell runs Fedora core 2 and whenever I switch back to it using the KVM it looses sync with the mouse. It used to do this with Red Hat 9 as well but quiting GNOME with Ctrl+Alt+F6 and then reloading with Ctrl+Alt+F7 always brought things back into line. I am afraid to say it but I know this is a software issue since it didn't do it under its old OS of M$ Windows...
Does anybody know how to get the mouse to resync ???
At the moment I often VNC into it but that can sometime be a pain in the rear for a variety of reasons.
Thanks in advance,
David.
|
|
|
| FC3 cannot find C compilers |
|
Posted by: brent - 2004-11-29, 02:52 PM - Forum: Compiling
- Replies (2)
|
 |
Hi.
Whenever i try to ./configure a program I get the following output:
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
when i do ./configure CC=/usr/local2/bin/gcc it finds gcc but still says there is no C compiler
how do i specify a c compiler, and where would one be found? or how do i permanantly add it to $PATH so it is used everytime?
thanks
brent
|
|
|
| how to install the java plugin in firefox |
|
Posted by: anyweb - 2004-11-29, 08:58 AM - Forum: Web Browsers
- Replies (15)
|
 |
Quote:PLEASE NOTE, the java download filename and VERSION changes often so the below filename may NOT be what you have just downloaded. In other words, please use YOUR filename in the commands below and NOT the one that I reference to otherwise you will not get this working.
Quote:In addition the below TIP is for fedora core 1,2,3. For Fedora Core release 4 do this [/url][url=<___base_url___>/index.php?showtopic=1707][/url][url=<___base_url___>/index.php?showtopic=1707]https://www.linux-noob.com/forums/index.php?showtopic=1707 and scroll down to "Now lets install Java", thats the bit you need.
first of all, why am i doing this small howto, well the 'install missing plugin' for java in firefox didn't work for me, it listed the 'manual installation' icon instead.
so this is what i did in Fedora Core Release 3 using Firefox 1
go to suns site and get the latest java rpm
[/url][url=http://javashoplm.sun.com/ECom/docs/Welcom...sactionId=noreg]http://javashoplm.sun.com/ECom/docs/Welcom...sactionId=noreg
download the linux rpm
once done, install it by doing this (login as root by typing su - in a console, thats a 'su' followed by a space, followed by a minus.)
now, cd (change directory) to the directory that you downloaded the rpm to, more than likely it's /home/your_user_name
so if you are anyweb do this,
then do this... (PLEASE NOTE, the java download filename changes often so the below filename may NOT be what you have just downloaded, to check what you did download try doing this)
once you have the 'filename' (it could be j2re-1_4_2_06-linux-i586-rpm.bin for example...) then apply THAT to the instructions below,
Code: [root@localhost anyweb]# chmod +x jre-1_5_0-linux-i586-rpm.bin
[root@localhost anyweb]# ./jre-1_5_0-linux-i586-rpm.bin
Do you agree to the above license terms? [yes or no]
y
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.42 of 14 January 2001, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-1_5_0-linux-i586.rpm
Preparing... ########################################### [100%]
1:jre ########################################### [100%]
Done.
ok now it's installed, lets link firefox plugins directory.
in your home directory (eg: /home/anyweb) there should be a hidden directory called mozilla.
Quote:To find the hidden directories, remember that they are all starting with a . (FULLSTOP/PERIOD) so cd /home/anyweb/.mozilla/plugins will get you to the directory.
so to link this correctly you need to identify your mozilla (yes mozilla !) plugins directory
here is mine
/home/anyweb/.mozilla/plugins
NOTE: if you do NOT have a /home/username/.mozilla/plugins directory that is because you have not installed any plugins YET in FireFox. If so, you will need to create the directory as the 'normal user' (you) and not as root. Open up another terminal (console) and type
Code: cd .mozilla
mkdir plugins
cd to that directory (change to that dir) and ln -s (symbolic link) to the java plugin.
Quote:REMINDER: the java download filename and VERSION changes often so the below filename may NOT be what you have just downloaded. In other words, please use YOUR filename in the commands below and NOT the one that I reference to otherwise you will not get this working.
here's the code now that you have checked what version you downloaded :)
Code: cd /home/anyweb/.mozilla/plugins
[anyweb@localhost plugins]$ ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so
[anyweb@localhost plugins]$ ls
flashplayer.xpt libflashplayer.so libjavaplugin_oji.so
ok thats it
once done, close firefox and restart it.
in the address bar type this
Quote:about:plugins
and press enter, you should hopefully now see the following:-
Quote:Installed plug-insFind more information about browser plug-ins at Netscape.com.
Help for installing plug-ins is available from plugindoc.mozdev.org.
Java Plug-in 1.5.0-b64
File name: libjavaplugin_oji.so
Java Plug-in 1.5.0
MIME Type Description Suffixes Enabled
application/x-java-vm Java Yes
application/x-java-applet Java Yes
application/x-java-applet;version=1.1 Java Yes
application/x-java-applet;version=1.1.1 Java Yes
application/x-java-applet;version=1.1.2 Java Yes
application/x-java-applet;version=1.1.3 Java Yes
application/x-java-applet;version=1.2 Java Yes
application/x-java-applet;version=1.2.1 Java Yes
application/x-java-applet;version=1.2.2 Java Yes
application/x-java-applet;version=1.3 Java Yes
application/x-java-applet;version=1.3.1 Java Yes
application/x-java-applet;version=1.4 Java Yes
application/x-java-applet;version=1.4.1 Java Yes
application/x-java-applet;version=1.4.2 Java Yes
application/x-java-applet;version=1.5 Java Yes
application/x-java-applet;jpi-version=1.5 Java Yes
application/x-java-bean Java Yes
application/x-java-bean;version=1.1 Java Yes
application/x-java-bean;version=1.1.1 Java Yes
application/x-java-bean;version=1.1.2 Java Yes
application/x-java-bean;version=1.1.3 Java Yes
application/x-java-bean;version=1.2 Java Yes
application/x-java-bean;version=1.2.1 Java Yes
application/x-java-bean;version=1.2.2 Java Yes
application/x-java-bean;version=1.3 Java Yes
application/x-java-bean;version=1.3.1 Java Yes
application/x-java-bean;version=1.4 Java Yes
application/x-java-bean;version=1.4.1 Java Yes
application/x-java-bean;version=1.4.2 Java Yes
application/x-java-bean;version=1.5 Java Yes
application/x-java-bean;jpi-version=1.5 Java Yes
cheers
anyweb
|
|
|
| VSFTP |
|
Posted by: fxdsuperglide - 2004-11-28, 11:03 PM - Forum: FTP Server
- Replies (2)
|
 |
Well, I have a problem I am using Fedora 3 and I cannot get a ftp connection is there anyone out there that has any real luck with vsftp.
|
|
|
| floppy install |
|
Posted by: doomtroll - 2004-11-27, 06:50 AM - Forum: How Do I?
- Replies (5)
|
 |
I tried installing Slackware linux on my Toshiba Satellite Laptop and the install went fine....now...it will not boot even with the boot disk...it just spews what looks like assembly code over & over till I pull the plug....
I'm not sure if I did something wrong....but I have neither the funds nor the Hardware to put linux on this laptop any other way.....nor Can I afford to get something else....
help greatly apreciated in any way
|
|
|
| Dual Monitors |
|
Posted by: danZenie - 2004-11-25, 03:50 PM - Forum: Xorg Problems
- Replies (1)
|
 |
hello m8s,
I've been trying to setup dual head monitors on my FC3 box for the past 2 days now with no luck. my box has a built-in Intel 865 card, and i added a ATI 3D Rage Pro to it (PCI). The ATI gets recognized and configured with no problem, but the Intel shows no video. I mananged to configure my xorg.conf for "dual head" using system-config-display. but nothing. i even tried setting my BIOS to use the onboard Intel as the main video source, but then when i boot linux it tells me that the ATI has been removed. last i tried using two PCI cards thinking that the onboard is probably whats creating all of the problems...no luck with that. kudz again complains about the other PCI been removed.
here is my uname -r:
2.6.9-1.667
here is my lspci output:
00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:02.0 Display controller: Intel Corp. 82865G Integrated Graphics Device (rev 02)
00:1d.0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corp. 82801EB (ICH5) SATA Controller (rev 02)
00:1f.3 SMBus: Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:07.0 VGA compatible controller: ATI Technologies Inc 3D Rage Pro 215GP (rev 5c)
01:0c.0 Ethernet controller: Intel Corp. 82540EM Gigabit Ethernet Controller (rev 02)
and here is my xorg.conf:
#################################################
#################################################
#################################################
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "Multihead layout"
Screen 0 "Screen0" LeftOf "Screen1"
Screen 1 "Screen1" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "Xinerama" "on"
Option "Clone" "off"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "LN775C"
DisplaySize 330 250
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "dpms"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Dell E772p"
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "ati"
VendorName "Videocard vendor"
BoardName "ATI Mach64"
BusID "PCI:1:7:0"
EndSection
Section "Device"
Identifier "Videocard1"
Driver "i810"
VendorName "Videocard Vendor"
BoardName "Intel 865"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Videocard1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
#################################################
#################################################
#################################################
|
|
|
|