General Linux Chat and Small Questions v. I broke my Arch Install
6,886 replies, posted
[QUOTE=Mega1mpact;43256002]
The bot is still running for some reason even though all the python code is gone
RIP[/QUOTE]
I thought you had this in git?
Also the reason it will be running is because python will have the code loaded in memory (in a "compiled" state)
If its still running you could try and dump the bytecode out of python.
[QUOTE=benjojo;43260133]I thought you had this in git?
Also the reason it will be running is because python will have the code loaded in memory (in a "compiled" state)
If its still running you could try and dump the bytecode out of python.[/QUOTE]
I think Python actually might have built-in decompilation facilities, too. If you can inject code into the parser/VM.
[QUOTE=benjojo;43260133]I thought you had this in git?
Also the reason it will be running is because python will have the code loaded in memory (in a "compiled" state)
If its still running you could try and dump the bytecode out of python.[/QUOTE]
How'd I dump the bytecode?
I didn't push stuff to git because I got frustrated with git after a while. It kept not accepting my commits so I went like "fuck it" and stopped pushing them.
[QUOTE=Mega1mpact;43260414]How'd I dump the bytecode?
I didn't push stuff to git because I got frustrated with git after a while. It kept not accepting my commits so I went like "fuck it" and stopped pushing them.[/QUOTE]
Stopped pushing them
But do you still have the local git repository?
[QUOTE=esalaka;43260419]Stopped pushing them
But do you still have the local git repository?[/QUOTE]
Sadly not.
I'm currently looking at automatic backup tools etc.
I feel so stupid now for not pushing/commiting my code.
I don't use automatic backup, because I don't like things working in the background and without my knowledge, especially those which attempt to manage revisions [i]in[/i] the filesystem (I'm sure they work just fine, but the point of the backups is to avoid data loss in the first place).
If you're interested, rsync supports incremental backups, and it only takes a bit of reading in the manual and some trial and error to decide how you like your backups maintained; I currently archive over ssh to a raspberry pi in my office. Rsync handles compressing large files before transfer and decompressing them upon receipt, it manages a hard-link delta-backup scheme so I can do "full" backups without creating new copies of files that haven't changed, etc.
Here's the script I threw together:
[code]
#!/bin/bash
# Simple backup to remote server with rsync over ssh
# Creates delta-backups (i.e. incremental) after the first run
# Idea from Michael Jakl at ibm.com
# We assume the filter is in the same directory as the script
cd `dirname $0`
# Source Information
SRC_PATH=/
FILTER=backup_filter
# Destination Information
DEST_HOST=rpi-office
DEST_PATH=/mnt/backup/`hostname`
# To identify backup (Date-Time)
name=`date "+%F_%T"`
# (a)rchive with compression (z), prune empty (m), delete extraneous, increment
# from latest;
rsync $1 --progress -amzh --delete --filter=". $FILTER" --link-dest=$DEST_PATH/latest $SRC_PATH $DEST_HOST:$DEST_PATH/$name
# Maintain the incremental backup scheme by using a symlink to remember the
# most recent backup.
ssh $DEST_HOST <<EOI
if [ -e $DEST_PATH/$name ]
then
if [ -e $DEST_PATH/latest ]
then
rm $DEST_PATH/latest && ln -s $DEST_PATH/$name $DEST_PATH/latest
else
# First backup
ln -s $DEST_PATH/$name $DEST_PATH/latest
fi
else
echo "Error: Failed to create link for backup $name" >> $DEST_PATH/err.log
fi
sync
EOI
[/code]
and the backup_filter:
[code]
# Include all directories from transfer location to ensure the rest of our
# include rules are not ignored.
+ */
# Configuration
+ /etc/***
# Boot files
+ /boot/***
# Apache junk
+ /srv/***
# Pacman DB (Installed programs list)
+ /var/lib/pacman/local/***
# My Home
# I hope Steam doesn't go under any time soon.
- /home/scott/.local/share/Steam***
# This changes often
- /home/scott/dloads/***
# These are too big and change too often
- /home/scott/.virtualbox_vms/***
# Add everything else
+ /home/scott/***
# Exclude everything; Now empty directories can be pruned and we will only get
# those directories necessary to contain included files.
- *
[/code]
I do backups weekly, but because it is incremental I suppose you could probably run backups much more frequently if you are worried about losing something you are working on. In your case, having a backup at the beginning of the week would still be [i]much[/i] better than having no backup at all, I assume.
Hi guys,
When I used to use xfce on xubuntu I could press print screen on my keyboard and it would launch xfce4-screenshooter. But because I'm on i3-wm now I don't have that option. Is it possible to re-enable it or is there another program you could suggest? Thanks.
[QUOTE=Leestons;43267397]Hi guys,
When I used to use xfce on xubuntu I could press print screen on my keyboard and it would launch xfce4-screenshooter. But because I'm on i3-wm now I don't have that option. Is it possible to re-enable it or is there another program you could suggest? Thanks.[/QUOTE]
If you can install xfce4-screenshooter, you can simply bind it to printscreen in your .i3/config. I believe it would be something like:
bindsym Print exec xfce4-screenshooter
If you can't, I'd recommend scrot with -s.
[QUOTE=awh;43267528]If you can install xfce4-screenshooter, you can simply bind it to printscreen in your .i3/config. I believe it would be something like:
bindsym Print exec xfce4-screenshooter
If you can't, I'd recommend scrot with -s.[/QUOTE]
That worked beautifully. Thank you! Have a star
Someone on the irc channel had a backup because he read through my code a couple of days ago. This means I only lost 1 day of work.
I can't express how reliefed I am right now
so anyone got any idea on how I'm going to install arch onto my two encrypted drives? will I have to decrypt them first, then install, then re-apply the encryption once arch is installed or can I somehow unlock the drives outside of windows so I can install arch onto there while it's unlocked?
Mega... You have to be a crazy lucky SOAB. Go buy a lottery ticket.
[QUOTE=Mega1mpact;43273528]Someone on the irc channel had a backup because he read through my code a couple of days ago. This means I only lost 1 day of work.
I can't express how reliefed I am right now[/QUOTE]
Holy shit. Buy yourself a backup now before your luck runs out.
[t]http://u.cubeupload.com/predgd/3Agvbw.png[/t]
trying out manjaro in a VM right now, loving it so far. it's not all that different from arch I suppose so shouldn't make a big difference if I go arch or manjaro I feel. ughh, feel that the world of linux calls for me. really need to get it back on my PC
-snip- I'm an idiot who doesn't install OS' correctly.
[editline]23rd December 2013[/editline]
Though I do have a good question, I cannot use the right click on my laptop's touchpad because Ubuntu does the double tap for secondary click. Is there a way to change or emulate that? I hate click on touchpad.
BackSapper, you should dig through the configuration under mouse or touchpad settings, I'm sure some settings will be there.
On another note, I installed the proprietary video drivers for ATi, and it went a lot smoother than expected. Hell, everything runs smoother now.
So I just installed the latest Ubuntu distro on my desktop and I don't seem to have a mouse pointer at all. Like it's not even invisible, since I can't use it(nothing happens when I right click etc).
I could use it during the installation. I have installed through an live usb (since I don't have any empty dvd's lying around), but don't see how that should affect it.
I googled it, and most people had this problem after installing unity or upgrading from an older version of Ubuntu, which neither I have done. I have tried to install some nvidia drivers, but since for some reason Ubuntu don't think I have a NIC with a wired connection, I can't even get it to find it/accept it through the terminal so I can't use the internet.
I have two screens, but only one of them are getting a picture. I thought first that it could be that the pointer is stuck on the other screen, but I don't see it as plausible since it doesn't even get any video output.
Any ideas?
Going to try with Linux Mint and see if it works any better.
So the settings that Ubuntu has provided are useless in my problem. My touchpad's physical right click button does not work at all, and I hate using the touch pad "two finger" to secondary click. It also seems that in any other window other than a system applet, the scroll is backwards including on a mouse.
just got myself a cheap VPS set up with arch and I've no idea how to continue on. I got SSH access and that stuff but I'm not comfortable with setting things up without a handy terminal and seeing what the hell happens in front of me. how would I proceed? something I can do to enable remote desktop?
[editline]24th December 2013[/editline]
wow im dumb, connected via SFTP not SSH it's okay guys
[editline]24th December 2013[/editline]
what's a good remote desktop program which preferably is available via pacman?
[editline]24th December 2013[/editline]
well I found vncserver but I can't remote desktop something without a GUI. problem is that it doesn't have any screens, obviously, so how do I turn VNC into a "screen" so I can remote desktop?
[QUOTE=PredGD;43291663]just got myself a cheap VPS set up with arch and I've no idea how to continue on. I got SSH access and that stuff but I'm not comfortable with setting things up without a handy terminal and seeing what the hell happens in front of me. how would I proceed? something I can do to enable remote desktop?
[editline]24th December 2013[/editline]
wow im dumb, connected via SFTP not SSH it's okay guys
[editline]24th December 2013[/editline]
what's a good remote desktop program which preferably is available via pacman?
[editline]24th December 2013[/editline]
well I found vncserver but I can't remote desktop something without a GUI. problem is that it doesn't have any screens, obviously, so how do I turn VNC into a "screen" so I can remote desktop?[/QUOTE]
I think it's a much better idea to just use SSH only. If you really need something graphical, you could try X forwarding over SSH. It's slow but it works.
[QUOTE=Darkwater124;43292868]I think it's a much better idea to just use SSH only. If you really need something graphical, you could try X forwarding over SSH. It's slow but it works.[/QUOTE]
[IMG]http://i.cubeupload.com/61gKSo.png[/IMG]
X11 forwarding is enabled in the client and I've set the X11Forwarding to yes in /etc/ssh/sshd_config
[QUOTE=PredGD;43292941][IMG]http://i.cubeupload.com/61gKSo.png[/IMG]
X11 forwarding is enabled in the client and I've set the X11Forwarding to yes in /etc/ssh/sshd_config[/QUOTE]
X needs to actually be runnning, too.
I have no idea why you'd want a graphical environment on a (I assume) piddly VPS. Just use ssh and install the things you need to run on there; web server, voice, VPN, etc.
Dude trust us SSH is easier.
All of the stuff you'll be running is command line based
[QUOTE=PredGD;43291663]just got myself a cheap VPS set up with arch and I've no idea how to continue on. I got SSH access and that stuff but I'm not comfortable with setting things up without a handy terminal and seeing what the hell happens in front of me. how would I proceed? something I can do to enable remote desktop?
[editline]24th December 2013[/editline]
wow im dumb, connected via SFTP not SSH it's okay guys
[editline]24th December 2013[/editline]
what's a good remote desktop program which preferably is available via pacman?
[editline]24th December 2013[/editline]
well I found vncserver but I can't remote desktop something without a GUI. problem is that it doesn't have any screens, obviously, so how do I turn VNC into a "screen" so I can remote desktop?[/QUOTE]
Use tmux for controlling remote servers, a bunch easier than multiple X windows for terminals.
yeah I'm just too used to have a DE in front of me. I feel a lot more comfortable with that even though the terminal is the most used :v: I'll try to get around with SSH
[QUOTE=PredGD;43297642]yeah I'm just too used to have a DE in front of me. I feel a lot more comfortable with that even though the terminal is the most used :v: I'll try to get around with SSH[/QUOTE]
What do you want to do in the DE anyway. Most, if not all server commands are CLI only.
[editline]24th December 2013[/editline]
If you're gonna VNC into a X session, just to have a DE, you're gonna be using the terminal in the DE anyway, because you just can't get around it.
[editline]24th December 2013[/editline]
Honestly, just using SSH (via putty or similiar) is way easier than setting a DE up, with a VNC Server, to do practically the same job.
[QUOTE=kaukassus;43298090]What do you want to do in the DE anyway. Most, if not all server commands are CLI only.[/QUOTE]
to be honest, no clue. first time I'm setting up a VPS so decided that I'd do what I usually do when I install arch. there are a few things I find easier to do with a GUI rather than a terminal as well. feel a lot more at home when it feels like I'm actually using the system rather than typing commands into a SSH
[QUOTE=PredGD;43298121]to be honest, no clue. first time I'm setting up a VPS so decided that I'd do what I usually do when I install arch. there are a few things I find easier to do with a GUI rather than a terminal as well. feel a lot more at home when it feels like I'm actually using the system rather than typing commands into a SSH[/QUOTE]
The problem with a DE on a VPS is that your wasting RAM that could otherwise be used for server services. May or may not be a big deal depending on how much RAM it has and your intended purpose.
But traditionally speaking, part of the big benefits of Linux servers is that there is very little OS overhead compared to Windows server. Partially because you aren't running a DE. Realistically speaking, the only time you will ever use the SSH interface is for maintenance and configuration so I wouldn't worry about trying to make it user friendly. The primary "user interface" for servers is through actual services like a game server or Web site server. Like mentioned above, most of the time server related activities can only be done through the terminal anyway.
[QUOTE=PredGD;43298121]to be honest, no clue. first time I'm setting up a VPS so decided that I'd do what I usually do when I install arch. there are a few things I find easier to do with a GUI rather than a terminal as well. feel a lot more at home when it feels like I'm actually using the system rather than typing commands into a SSH[/QUOTE]
For certain web-reliant GUIs (web browser, FTP stuff, etc.) you can run them as if they are on the server using SSH tunneling. That can be a lot faster than X forwarding.
after some fiddling around and testing things out I think I'll stick with SSH. just had to get used to it and everything works like I want it to! only issue I have right now is that I need root access through SFTP. how would I go about doing that?
Sorry, you need to Log In to post a reply to this thread.