Why GNU/Linux Rocks

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Mr. Snuffleupagus
    replied
    Originally posted by sgreger1
    Sweet, thanks guys! My newest problem is that it say my home drive is full and has no more space I only have 20 gigs for the home partition because everyone said that would be enough but I need about 4x that amount of space because I plan to install some things. Is there any way of expanding this partition without frying my Windows partition? I am just really scared after destroying my mom's computer while trying to partition it, I can not afford to lose the data on my computer. Is there any relatively safe way to reduce the amount of space on the windows partition and give that the the linux partition?
    Back that shit up!

    Leave a comment:


  • lxskllr
    replied
    NO! Seriously, don't dick with the partitions without backing up. For /home, 20gb should be plenty unless you're storing tons of media. You don't have to do that. You can put media on your Windows partition, an external drive, or a network share.

    Leave a comment:


  • sgreger1
    replied
    Sweet, thanks guys! My newest problem is that it say my home drive is full and has no more space I only have 20 gigs for the home partition because everyone said that would be enough but I need about 4x that amount of space because I plan to install some things. Is there any way of expanding this partition without frying my Windows partition? I am just really scared after destroying my mom's computer while trying to partition it, I can not afford to lose the data on my computer. Is there any relatively safe way to reduce the amount of space on the windows partition and give that the the linux partition?

    Leave a comment:


  • devilock76
    replied
    Originally posted by shikitohno
    The commond way to start tasks automatically in Linux is to use a daemon. For example, sshd (ssh daemon) starts listening for ssh connections at boot, mpd starts up the music player daemon at boot. If you can find a daemon that does what you want, you just have to tell your machine to start it up on boot. This can be done with chkconfig in Fedora, and I imagine this would also be true on other distros which use a systemd init, but I'm not 100% on that. On Arch and other distros using a Sys V style init, you simply add the daemon you want to your daemons array by editing the file at /etc/rc.conf. Then the daemon will start up on boot after you add it, and wait for you to execute a command that it handles.

    If you don't need a daemon running all the time or can't find one that would be appropriate for the task, or you just need to execute it once when you start, you can add the command to your ~/.xinitrc before the exec line that starts up your DE/WM. I'm not sure if gnome reads the file, so that may not help for you. You could always edit the login manager's configuration to make sure it does that by making it use the startx command. You could also switch to a login manager that uses startx by default. I find the simplest method for me is to just make my computer boot to the console. I can screw around and does stuff from a tty if I want, don't need to fiddle with a login manager, and if I want to fire up a graphical display,I can just run startx myself. If you use one of these methods that execute the startx command, you just need to edit the ~/.xinitrc file and make the last line
    Code:
    exec foo
    with foo being whatever the command is that launches your favourite DE/WM. The lines before that last one can contain various commands typed as you'd enter them at a terminal, and they'll run as soon as you use startx. I believe you should be able to just toss your ssh command on one of these lines, and it should work. If I'm wrong, hopefully lx or devilock can come along and tell you the correct way of doing it.
    For example in my .xinitrc on BSD where I use fluxbox mostly, conky is executed automatically. I dare think of the length of my /etc/rc.conf on that machine considering all the services it starts...

    Ken

    Leave a comment:


  • shikitohno
    replied
    The commond way to start tasks automatically in Linux is to use a daemon. For example, sshd (ssh daemon) starts listening for ssh connections at boot, mpd starts up the music player daemon at boot. If you can find a daemon that does what you want, you just have to tell your machine to start it up on boot. This can be done with chkconfig in Fedora, and I imagine this would also be true on other distros which use a systemd init, but I'm not 100% on that. On Arch and other distros using a Sys V style init, you simply add the daemon you want to your daemons array by editing the file at /etc/rc.conf. Then the daemon will start up on boot after you add it, and wait for you to execute a command that it handles.

    If you don't need a daemon running all the time or can't find one that would be appropriate for the task, or you just need to execute it once when you start, you can add the command to your ~/.xinitrc before the exec line that starts up your DE/WM. I'm not sure if gnome reads the file, so that may not help for you. You could always edit the login manager's configuration to make sure it does that by making it use the startx command. You could also switch to a login manager that uses startx by default. I find the simplest method for me is to just make my computer boot to the console. I can screw around and does stuff from a tty if I want, don't need to fiddle with a login manager, and if I want to fire up a graphical display,I can just run startx myself. If you use one of these methods that execute the startx command, you just need to edit the ~/.xinitrc file and make the last line
    Code:
    exec foo
    with foo being whatever the command is that launches your favourite DE/WM. The lines before that last one can contain various commands typed as you'd enter them at a terminal, and they'll run as soon as you use startx. I believe you should be able to just toss your ssh command on one of these lines, and it should work. If I'm wrong, hopefully lx or devilock can come along and tell you the correct way of doing it.

    Leave a comment:


  • sgreger1
    replied
    Hey so how would I go about making a script that starts up whenever I restart Fedora?

    I am running all of my traffic through a SOCKS proxy, but to do that I have to open up the terminal and SSH -D into the server at the corresponding port. Right now I am doing this manually each time during startup, is there any way to automate this without learning a programming language?

    Leave a comment:


  • lxskllr
    replied
    The script lets you right click an image(s), and pick "Upload to imgur" from the context menu. It then puts a link to your image on your clipboard so you can post it to a website or something. I'm using Thunar now, so I couldn't do it exactly the same way. Here's where to get the original script...

    http://www.omgubuntu.co.uk/2010/11/q...-via-nautilus/

    and here's my modified script. I keep it in a ~/.scripts folder...

    Code:
    #!/usr/bin/python
    # -*- coding: utf-8 -*-
    import pycurl
    import xml.dom.minidom
    import StringIO
    import sys
    import gtk
    import os
    import imghdr
    import locale
    import gettext
    
    try:
    	import pynotify
    except:
    	print "Install pynotify. It's whoasome!"
    
    from subprocess import call
    
    	
    APP="Imgur Uploader"
    DIR="locale"
    
    
    locale.setlocale(locale.LC_ALL, '')
    gettext.bindtextdomain(APP, DIR)
    gettext.textdomain(APP)
    _ = gettext.gettext
    
    ##STRINGS
    notimg = _("is not an image.")
    notallowed = _("is not an allowed file type. Skipping.")
    uploading = _("Uploading")
    oneimage = _("1 image has been uploaded.")
    multimages = _("images have been uploaded.")
    uploadfailed = _("Unable to upload")
    
    class Uploadr:
    	def __init__(self, args):
    		
    		self.allowedTypes = ("jpeg", "jpg", "gif", "png", "apng", "tiff", "bmp", "pdf", "xcf")
    		self.images = []
    		self.urls = []
    		self.broadcasts = []
    		if len(args) == 1:
    			return
    		else:
    			for file in args:
    				if file == args[0] or file == "":
    					continue
    				self.type = imghdr.what(file)
    				if not self.type:
    					self.broadcasts.append(file+" "+notimg)
    				else:
    					if self.type not in self.allowedTypes:
    						self.broadcasts.append(self.type+" "+notallowed+file)
    					else:
    						self.images.append(file)
    		for file in self.images:
    			self.upload(file)
    			
    		self.setClipBoard()
    		
    		self.broadcast(self.broadcasts)
    		
    	def broadcast(self, l):
    		try:
    			str = '\n'.join(l)
    			call(["xcowsay", str])
    		except:
    			for line in l:
    				print line
    		
    		
    	def upload(self, file):
    		c = pycurl.Curl()
    		
    		values = [
    				("key", "e85c0044b9222bc9a2813679a452f54f"),
    				("image", (c.FORM_FILE, file))]
    				
    		buf = StringIO.StringIO()
    		
    		c.setopt(c.URL, "http://imgur.com/api/upload.xml")
    		c.setopt(c.HTTPPOST, values)
    		c.setopt(c.WRITEFUNCTION, buf.write)
    		
    		if c.perform():
    			self.broadcasts.append(uploadfailed+" "+file+".")
    			c.close()
    			return
    
    		self.result = buf.getvalue()
    		c.close()
    
    		doc = xml.dom.minidom.parseString(self.result)
    
    		self.urls.append(doc.getElementsByTagName("original_image")[0].childNodes[0].nodeValue)
    		
    	def setClipBoard(self):
    		c = gtk.Clipboard()
    		c.set_text('\n'.join(self.urls))
    		c.store()
    		if len(self.urls) == 1:
    			self.broadcasts.append(oneimage)
    		elif len(self.urls) != 0:
    			self.broadcasts.append(str(len(self.urls))+" "+multimages)
    
    if __name__ == '__main__':
    	uploadr = Uploadr(sys.argv)

    Leave a comment:


  • sgreger1
    replied
    Can you elaborate on the Nautilus script for uploading to imgur? What does it do and how does it do it, and will you share

    Leave a comment:


  • lxskllr
    replied
    Here's my most recent desk. Someone on another forum was helping me tweak a Nautilus script for uploading pictures to imgur. I have the notifications going through xcowsay instead of the system notifier.

    Leave a comment:


  • sgreger1
    replied
    Raspberry Pi Fedora Remix Ready For Download!

    The SD card image for the Remix includes a little over 640 packages, providing both text-mode and graphical interfaces (LXDE/XFCE) with an assortment of programming languages, applications, system tools, and services for both environments. There are over 16,000 software packages available from the Fedora ARM repositories which can be easily installed using the Internet to customize your system to meet your needs and interests (again, using either command-line or graphical tools).
    Some of the highlights of the software included in the SD card image:
    • Programming languages: python, perl, ruby, bash
    • Version control: git
    • System administration tools (command line and/or graphical) for configuring various aspects of the system including the network, date/time, users, and printers
    • Command-line and graphical tools for installing/removing/updating software
    • ssh (secure remote login) and printer services
    • Graphical applications: word processing (AbiWord), spreadsheets (Gnumeric), image editing (GIMP), and web browsing (Firefox)
    • Editors for programming: vim (text mode) and gedit with plugins for file management, terminal, and python console (graphical mode)
    So it looks like I need to figure out how to use XFCE now! It runs GIMP even!


    In other news:
    Last night I experimented with CairoDock and some themes, and figured out how to turn on fallback mode in Gnome3, which essentially makes it Gnome 2 (no more moving the mouse to the top left hand corner to access apps etc), which was pretty sweet. Got gnome-tweak-tool working after like 3 hours of effort (shell extensions weren't working right). I have to say I am absolutely IN LOVE with Linux, you can customize literally evertyhing. I have one setup that looks just like a Mac with the dock, 3 (red,green,yellow) buttons on the left hand side etc for example, and I can switch it any time to something else! Absolutely amazing.

    Leave a comment:


  • sgreger1
    replied
    Originally posted by lxskllr
    I could see using it for foreign computers, or for laptops in the wild, but I wouldn't want to use it for general use. Tor is slow as hell to browse with, and if you enable features that make the web more interesting, you can compromise your anonymity.
    Yah i'm imagining crawling internet speed, no pictures, videos, executible files, noscript turned up to the max, no flash etc. Would be cool to try out but honestly I am not Julian Assange or anything so I don't think I need it.

    Leave a comment:


  • lxskllr
    replied
    Originally posted by sgreger1
    Has anyone heard of the distro TAILS? It is supposed to be more secure but i'm wondering if it's all hype.

    Someone commented:

    Its based on Debian - so it is rock solid
    Using tails is far safer than just using standard Tor.
    For one it forces ALL outgoing connections through TOR.
    I could see using it for foreign computers, or for laptops in the wild, but I wouldn't want to use it for general use. Tor is slow as hell to browse with, and if you enable features that make the web more interesting, you can compromise your anonymity.

    Leave a comment:


  • sgreger1
    replied
    Has anyone heard of the distro TAILS? It is supposed to be more secure but i'm wondering if it's all hype.

    Someone commented:

    Its based on Debian - so it is rock solid
    Using tails is far safer than just using standard Tor.
    For one it forces ALL outgoing connections through TOR.

    Leave a comment:


  • devilock76
    replied
    Probably Cairo dock. And I will mention last I checked Cairo dock worked very well from the fedora repos.

    Ken

    Leave a comment:


  • lxskllr
    replied
    The desktop looks like Gnome2 with CairoDock, or some similar docking program. I'd replicate it using Xfce, and some docking program. As far as Conky "themes" go, it isn't straightforward. What you would have to do is download the script and art assets the guy used for his particular config, and put them in your machine, changing the script as necessary to work with your circumstances.

    Try switching "own_window_type" to normal to get it to show on all desktops. If that doesn't work, try deleting "own_window_class Conky" Btw, you want to work on .conkyrc in yoiur home folder. If it isn't there. make it and copy your script to that file. That'll override what's in the conky folder, and you'll never have conky completely break cause you did something wrong.

    Leave a comment:

Related Topics

Collapse

Working...
X