You are not logged in.

#1 2014-07-13 02:09:49

Firephyz
Member
Registered: 2014-07-13
Posts: 22

[Solved] How can I create logs of my console?

Hello. I'm fairly new to linux in general and decided to take up the challenge and use Arch Linux. I have succeeded in installing the base system but I'm having a problem with getting my wireless network to work (dhcpcd doesn't seem to want to give me an ipv4 address, the ipv6 address just times out) I would like to create a new thread describing the issue in hopes of solving it but I have no idea how I am going to get the output from my arch console on one computer to this browser on a laptop. I'd like to describe my problem as well as possible but I don't really want to sit here and type out the hundreds of lines of output that I have right now. Could you explain to me how I may go about getting this information onto this forum? Thanks for your help.

Last edited by Firephyz (2014-07-19 20:04:47)

Offline

#2 2014-07-13 02:27:04

ooo
Member
Registered: 2013-04-10
Posts: 1,116

Re: [Solved] How can I create logs of my console?

welcome to forums

you can forward output from any command to a file with "command > file"
for example

pacman -Syu > pacman.txt

would print output from 'pacman -Syu' to a file called pacman.txt

then you can cp or mv the file to usb-stick for example.

Offline

#3 2014-07-13 02:27:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: [Solved] How can I create logs of my console?

Save the output to a file and upload it somewhere https://wiki.archlinux.org/index.php/Pa … in_clients

Offline

#4 2014-07-13 09:32:24

Spider.007
Member
Registered: 2004-06-20
Posts: 1,156

Re: [Solved] How can I create logs of my console?

You should have a look at `man script` it will log and replay an entire session

Offline

#5 2014-07-13 23:00:36

Firephyz
Member
Registered: 2014-07-13
Posts: 22

Re: [Solved] How can I create logs of my console?

I'm trying to move some of my log files and such to my usb stick. I've mounted the usb to /mnt/usb1 and I should have all permissions ((ls -l /mnt) returns drwx------). When trying to copy the netctl configuration file to this usb with (cp /etc/netctl/my-network /mnt/usb1) I get "cannot create regular file /mnt/usb1/my-network: Permission denied. Can you guys help me with this? Thanks.

Offline

#6 2014-07-13 23:05:10

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,743
Website

Re: [Solved] How can I create logs of my console?

What is the filesystem and ownership on the usb?  Are you trying to copy as root or a regular user?


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#7 2014-07-13 23:05:17

ConnorBehan
Trusted User (TU)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,356
Website

Re: [Solved] How can I create logs of my console?

You need to be root. If this is just for the purpose of searching the output for certain things, screen lets you do that.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#8 2014-07-13 23:24:39

weirddan455
Member
Registered: 2012-04-15
Posts: 194

Re: [Solved] How can I create logs of my console?

I should have all permissions ((ls -l /mnt) returns drwx------)

Those permissions mean only the owner of that directory has rights.  Ignoring the d (just means its a directory), the first 3 means read, write, and execute permissions for the owner.  The next 3 are blank so the group that owns it gets no permissions.  The last 3 are also blank and mean no one else gets any permissions.  If the directory is owned by root, you need to use su or sudo to be able to access it.

If that doesn't solve it, another common problem is that NTFS partitions are read-only with the default NTFS driver compiled into the kernel.  You need to install the package "ntfs-3g" to get a driver that can write to NTFS.  If you don't have internet to install that package, you may just want to reformat your USB stick to another file system (FAT32 is good if you need Windows to be able to use it.)

Offline

#9 2014-07-14 00:31:52

Firephyz
Member
Registered: 2014-07-13
Posts: 22

Re: [Solved] How can I create logs of my console?

Yeah, I was attempting to do it with sudo su on my user. I will just try to reformat the drive. Hopefully this works. Thanks guys.

Offline

#10 2014-07-14 07:27:41

ConnorBehan
Trusted User (TU)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,356
Website

Re: [Solved] How can I create logs of my console?

Firephyz wrote:

Yeah, I was attempting to do it with sudo su on my user. I will just try to reformat the drive. Hopefully this works. Thanks guys.

Oh god.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#11 2014-07-14 15:10:32

weirddan455
Member
Registered: 2012-04-15
Posts: 194

Re: [Solved] How can I create logs of my console?

Firephyz wrote:

Yeah, I was attempting to do it with sudo su on my user. I will just try to reformat the drive. Hopefully this works. Thanks guys.

Yea don't run sudo su.  Use one or the other.  If you want an interactive shell with sudo just do "sudo -i"

Offline

Board footer

Powered by FluxBB